import request from '@/utils/request';

/**
 * GET 下载文件
 * @pathParam apiVersion true
 * @queryParam fileId true
 */
export function downloadUsingGET_1({ params, data }) {
  return request('fileUpload/download', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * DELETE 文件删除
 * @pathParam apiVersion true
 * @queryParam fileId true
 */
export function fileDeleteUsingDELETE({ params, data }) {
  return request('fileUpload/fileDelete', {
    method: 'DELETE',
    params,
    data,
  });
}

/**
 * GET 文件预览
 * @pathParam apiVersion true
 * @queryParam fileId true
 */
export function filePreviewUsingGET({ params, data }) {
  return request('fileUpload/filePreview', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * POST 上传文件
 * @pathParam apiVersion true
 * @formDataParam file true
 * @queryParam projectId false
 */
export function fileUploadUsingPOST_1({ params, data }) {
  return request('fileUpload/upload', {
    method: 'POST',
    params,
    data,
  });
}
